package com.fa4j.system.account.model;

import com.fa4j.common.base.model.CommonState;
import com.fa4j.common.base.model.PageQuery;
import com.fa4j.common.data.annotation.Query;
import com.fa4j.common.data.model.QueryType;
import com.fa4j.common.web.model.AppType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "账号分页查询")
public class AccountQuery extends PageQuery {

    @Query
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "应用类型")
    private AppType appType;

    @Query(type = QueryType.LIKE)
    @Schema(description = "昵称")
    private String nickname;

    @Query
    @Schema(description = "类型")
    private AccountType type;

    @Query
    @Schema(description = "状态")
    private CommonState state;

    @Query(type = QueryType.LIKE)
    @Schema(description = "手机号码")
    private String phone;

    @Query(type = QueryType.LIKE)
    @Schema(description = "电子邮箱")
    private String email;

}
